package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsTemperature;
import io.sage.modules.statistics.entity.BStatisticsTemperatureExample;

public interface BStatisticsTemperatureMapper {
    int countByExample(BStatisticsTemperatureExample example);

    int deleteByExample(BStatisticsTemperatureExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsTemperature record);

    int insertSelective(BStatisticsTemperature record);

    List<BStatisticsTemperature> selectByExample(BStatisticsTemperatureExample example);

    BStatisticsTemperature selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsTemperature record, @Param("example") BStatisticsTemperatureExample example);

    int updateByExample(@Param("record") BStatisticsTemperature record, @Param("example") BStatisticsTemperatureExample example);

    int updateByPrimaryKeySelective(BStatisticsTemperature record);

    int updateByPrimaryKey(BStatisticsTemperature record);

    /**
	 * 气温列表
	 * @param example
	 * @return
	 */
	List<BStatisticsTemperature> selectStatisticsTemperatureList(Map<String, Object> params);

	/**
	 * 批量添加传感器的气温
	 * @param list
	 * @return
	 */
	int saveTemperatureList(@Param("list")List<BStatisticsTemperature> list);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
